package com.powernode.service.impl;

import com.github.pagehelper.PageInfo;
import com.powernode.domain.User;
import com.powernode.dto.UserDto;

import java.util.List;

public interface UserService{


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //登录用的
    User findUser(String username, String  password);

    PageInfo<User> queryUserForPage(UserDto userDto);

    /**
     * 查询所有在职的业务员
     * @return
     */
    List<User> queryAllvailableUser();
}
